
<div id="Main"> 
		<div id="Container">
			<div id="Header">
				<div id="Banner">
					<div class="col-1">
                        <a href="<?php echo $this->baseUrl(); ?>" title="FlowerStore" class="logo">
							<img src="<?php echo $this->baseUrl('images/system/logo.gif'); ?>" alt="logo" width="339px" height="114px"/>
						</a>
					</div>
					<div class="col-2">
						<p class="welcome-msg">Chào mừng đến với shop hoa online!</p>
			            <ul class="links">
			            <?php 
							//Nếu chưa đăng nhập
							$auth = Zend_Auth::getInstance();
							if (!$auth->hasIdentity()) {
						?>	
							<li><a href="<?php echo $this->baseUrl('cart/index') ?>" title="My Cart" class="top-link-cart">Giỏ hàng</a></li>
				            <li><a href="<?php echo $this->baseUrl('user/thanhtoan') ?>" title="Checkout" class="top-link-checkout">Thanh toán</a></li>
							<li><a id="dangnhap" href="javascript:" title="Log In">Đăng Nhập</a></li>
				            <li class="last"><a href="<?php echo $this->baseUrl('index/regis') ?>" title="Sign Up">Đăng Ký</a></li>
				        <?php 
							}else{//Nếu Đã đăng nhập:
								$infoUser = $auth->getIdentity();
						?>
							<li class="first"><a href="javascript:" title="My Account">Xin chào, <?php echo $infoUser->tenkh;?></a></li>
							<li><a href="<?php echo $this->baseUrl('cart/index') ?>" title="My Cart" class="top-link-cart">Giỏ hàng</a></li>
				            <li><a href="<?php echo $this->baseUrl('user/thanhtoan') ?>" title="Checkout" class="top-link-checkout">Thanh toán</a></li>
				            <li class="last"><a href="<?php echo $this->baseUrl('index/logout'); ?>" title="Log Out">Đăng Xuất</a></li>
						<?php }?>    
					    </ul>
			            <form id="search_mini_form" action="index/search" method="get">
						    <div class="form-search">
						        <input id="search" type="text" name="q" value="" class="input-text" autocomplete="off">
						        <button type="submit" title="Search" class="button"><span><span>Search</span></span></button>
							</div>
						</form>
			        </div>
				</div><!--End of Banner-->
				<div id="TopMenu">
					<ul>
						<a href="<?php echo $this->baseUrl(); ?>"><li>Trang chủ</li></a>
						<a href="<?php echo $this->baseUrl('index/gioithieu') ?>"><li>Giới thiệu</li></a>
						<a href="<?php echo $this->baseUrl().'#lienhe' ?>"><li>Liên hệ</li></a>
						<a href="<?php echo $this->baseUrl('index/ynghia') ?>"><li>Ý nghĩa các loài hoa</li></a>
						<a href="<?php echo $this->baseUrl('admin/index'); ?>"><li>Trang Admin</li></a>
					</ul>
				</div><!--End of TopMenu-->
			</div><!--End of Header-->
<script type="text/javascript">
	$(document).ready(function(){//Mọi hàm jquery đều để bên trong hàm này
		$('#Container').append('<div id="datrieng"><a href="<?php echo $this->baseUrl('user/datrieng') ?>" ><img title="Đặt hoa theo yêu cầu riêng" src="<?php echo $this->baseUrl().'/images/system/datrieng4.gif' ?>" /></a></div>');
		$('#Container').append('<div id="backtotop"><div id="top"></div></div>');
		$('#Container').append('<a href="<?php echo $this->baseUrl('cart/index') ?>" title="Giỏ hàng của bạn"><span id="cart-btn"><div id="cart-icon"></div></a>');
		
		$('#backtotop').fadeOut();
		$(window).scroll(function() {
            if($(window).scrollTop() != 0) {
                $('#backtotop').fadeIn();
            } else {
                $('#backtotop').fadeOut();
            }
           });
		$('#top').click(function(){//Khi nguoi dung click vao class la: cart_button
			$('html, body').animate({scrollTop:0},500);
		});
		
	});
</script>
<?php echo $this->render('frontend_common/login.phtml'); ?>